\name{GetBounds}
\alias{GetBounds}
\encoding{UTF-8}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
 Gets the minimum enclosing rectangle of the object
}
\description{
获取数据集或者空间几何对象的最小外接矩形，使用外接矩形的左上顶点坐标和右下顶点坐标表示。
}
\usage{
GetBounds(obj)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{obj}{
  \code{\link{Dataset-class}}对象，\code{\link{DatasetVector-class}}对象，\code{\link{DatasetRaster-class}}对象,\code{\link{Geometry-class}}对象，\code{\link{GeoPoint-class}}对象，\code{\link{GeoLine-class}}对象，\code{\link{GeoRegion-class}}对象
}
}
\details{
点对象的最小外接矩形退化为一个点，即矩形的左边界坐标值等于其右边界坐标值，上边界坐标值等于其下边界的坐标值，分别为该点的 x 坐标和 y 坐标。
}
\value{
成功返回一个\code{\link{matrix}}对象，否则返回 NULL
}
\references{
%% ~put references to the literature/web site here ~
}
\author{
%%  ~~who you are~~
}
\note{
%%  ~~further notes~~
}

%% ~Make other sections like Warning with \section{Warning }{....} ~

\seealso{
%% ~~objects to See Also as \code{\link{help}}, ~~~
}
\examples{
pnts <- matrix(data=1:20, nrow=10, ncol=2)
line <- CreateLine(pnts, c(10))
bbox <- GetBounds(line)
}
% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
\keyword{ methods }% use one of  RShowDoc("KEYWORDS")
